package top.laoshuzi.designpatterns.base.created.singleton.kotlin

/**
 * 双重检查
 */
class Singleton3 {

    companion object {
        val INSTANCE by lazy {
            Singleton3()
        }

        fun getInstance(): Singleton3 = INSTANCE
    }

    private var name: String = "双重检查"

    fun getName(): String = name
}
